package com.winphone.weekly.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author zhou
 * @since 2017-11-14
 */
@TableName("tb_ac_datasource_config")
public class AcDatasourceConfig extends Model<AcDatasourceConfig> {

    private static final long serialVersionUID = 1L;

	@TableId(value = "dc_id",type = IdType.AUTO)
	private Integer dcId;
    /**
     * 数据库连接名称
     */
	private String name;
    /**
     * 驱动名称
     */
	@TableField("driver_class")
	private String driverClass;
    /**
     * 连接地址
     */
	@TableField("jdbc_url")
	private String jdbcUrl;
    /**
     * 用户名
     */
	private String username;
    /**
     * 密码
     */
	private String password;
    /**
     * 数据库名称
     */
	@TableField("back_user")
	private String backUser;


	public Integer getDcId() {
		return dcId;
	}

	public void setDcId(Integer dcId) {
		this.dcId = dcId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDriverClass() {
		return driverClass;
	}

	public void setDriverClass(String driverClass) {
		this.driverClass = driverClass;
	}

	public String getJdbcUrl() {
		return jdbcUrl;
	}

	public void setJdbcUrl(String jdbcUrl) {
		this.jdbcUrl = jdbcUrl;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getBackUser() {
		return backUser;
	}

	public void setBackUser(String backUser) {
		this.backUser = backUser;
	}

	@Override
	protected Serializable pkVal() {
		return this.dcId;
	}

}
